package com.htfyun.roobofactory.engineerTest;

import android.support.v4.app.Fragment;

import com.htfyun.roobofactory.R;

/**
 * Created by sst on 2018/7/11.
 */

public enum EngineerItemsEnum {
    led(R.string.engineer_test_led, EngineerLedFragment.class),
    key(R.string.engineer_test_key, EngineerKeyFragment.class),
    ;
    private final int nameResId;
    private final Class<? extends Fragment> fragmentClass;

    EngineerItemsEnum(int nameResId, Class<? extends Fragment> cls) {
        this.nameResId = nameResId;
        this.fragmentClass = cls;
    }

    public int getNameResId() {
        return nameResId;
    }

    public Class<? extends Fragment> getFragmentClass() {
        return fragmentClass;
    }
}
